
from django.conf.urls import url
from django.contrib import admin
from . import views

urlpatterns = [
    url(r'^list/(?P<category_id>\d+)/(?P<page_num>\d+)/$', views.ListView.as_view(),name='list'),

    #热销
    url(r'^hot/(?P<category_id>\d+)/$', views.HotView.as_view()),
    #搜索是用第三方的不用创建路由和方法


    #详情页
    url(r'^detail/(?P<sku_id>\d+)/$', views.DetailView.as_view(),name='detail'),
    #商品访问量
    url(r'^detail/visit/(?P<category_id>\d+)/$', views.DetailVisitView.as_view()),
    #用户浏览记录
    url(r'^browse_histories/$', views.UserBrowseHistory.as_view()),
]
